
<%inherit file="/batch/batchbase.html"/>

<%block name="title"%>process</%block%>


<%block name="content">
    <div class="king-block-content">
        <!-- 带搜索表格(DataTables)-1 Start -->
        <table id="table2_demo4" class="table table-bordered table-striped">
            <thead>
                <tr>
                    <th>主机IP</th>
                    <th>用户</th>
                    <th>唯一标识</th>
                    <th>进程PID</th>

                    <th>状态</th>

                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                   % for data in dic:
                   <tr>
                        <td> ${data['ip']}</td>
                        <td> ${data['user']}</td>
                        <td> ${data['mark']}</td>
                        <td> ${data['pid']}</td>

                        <td> ${data['statu']}</td>
                        <td>
                            % if data['statu'] == u'未运行':
                            <button class="king-btn king-info">启动
                    </button>
                            % elif data['statu'] == u'运行中':
                               <button class="king-btn king-danger">停止
                            </button>
                            % endif
                        </td></tr>
                    % endfor
            </tbody>
        </table>
        <!-- 带搜索表格(DataTables)-1 End -->
    </div>
</%block>
<%block name='script'>
<script src="${STATIC_URL}js/jquery.dataTables.js?v=${STATIC_VERSION}" type="text/javascript"></script>
<script src="${STATIC_URL}js/dataTables.bootstrap.js?v=${STATIC_VERSION}" type="text/javascript"></script>
<script src="${STATIC_URL}js/bkbatchprocess.js?v=${STATIC_VERSION}" type="text/javascript"></script>
<link href="${STATIC_URL}css/opentip.css" rel="stylesheet">
<script src="${STATIC_URL}js/opentip-jquery.min.js"></script>
<script src="${STATIC_URL}js/dialog-min.js"></script>


</%block>